﻿@model MobileSales.Model.Clients.Client

@{
    View.Title = Strings.Clients + " - " + Strings.Details;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Strings.Clients &nbsp;&raquo;&nbsp; @Strings.Details</h2>

<fieldset>
    <legend>@Strings.Fields</legend>

    <div class="display-label">@ModelStrings.Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">@ModelStrings.Name2</div>
    <div class="display-field">@Model.Name2</div>

    <div class="display-label">@ModelStrings.Nip</div>
    <div class="display-field">@Model.Nip</div>

    <div class="display-label">@ModelStrings.Zipcode</div>
    <div class="display-field">@Model.Zipcode</div>

    <div class="display-label">@ModelStrings.City</div>
    <div class="display-field">@Model.City</div>

    <div class="display-label">@ModelStrings.Street</div>
    <div class="display-field">@Model.Street</div>

    <div class="display-label">@ModelStrings.Phone</div>
    <div class="display-field">@Model.Phone</div>

    <div class="display-label">@ModelStrings.Fax</div>
    <div class="display-field">@Model.Fax</div>

    <div class="display-label">@ModelStrings.Info</div>
    <div class="display-field">@Model.Info</div>

    <div class="display-label">@ModelStrings.Info2</div>
    <div class="display-field">@Model.Info2</div>

    <div class="display-label">@ModelStrings.Debts</div>
    <div class="display-field">@String.Format("{0:F}", Model.Debts)</div>

    <div class="display-label">@ModelStrings.IsSupplier</div>
    <div class="display-field">@(Model.IsSupplier ? Strings.Yes : Strings.No)</div>

    <div class="display-label">@ModelStrings.LastVisitTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.LastVisitTime)</div>

    <div class="display-label">@ModelStrings.Group</div>
    <div class="display-field">@Model.Group.Name</div>

    @Html.ParamsFor(MobileSales.Model.Params.ParamType.Client, Model.Params)
</fieldset>
<p>
    @Html.ActionLink(Strings.Edit, "Edit", new { id = Model.Id }, new { @class = "icon-button edit-icon" }) |
    @Html.ActionLink(Strings.BackToList, "Index", null, new { @class="icon-button prev-icon" })
</p>
